package com.lucher.mes.po;

import java.util.List;
import java.util.Map;

public class Bom extends BaseField{
  
	private static final long serialVersionUID = -5907038862069227895L;

	private Integer id;

    private Integer pid;

    private String productcode;

    private String productname;

    private String bomcode;

    private String materialcode;

    private String materialname;

    private Integer amount;

    private String remark;

    /******************数据库辅助字段*************************/
	private Bom bom;
	private List<Bom> bomlist;
	private Bom parentbom; //父级Bom
	private Product product;
	private Map<String, String> productmap;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getProductcode() {
        return productcode;
    }

    public void setProductcode(String productcode) {
        this.productcode = productcode == null ? null : productcode.trim();
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname == null ? null : productname.trim();
    }

    public String getBomcode() {
        return bomcode;
    }

    public void setBomcode(String bomcode) {
        this.bomcode = bomcode == null ? null : bomcode.trim();
    }

    public String getMaterialcode() {
        return materialcode;
    }

    public void setMaterialcode(String materialcode) {
        this.materialcode = materialcode == null ? null : materialcode.trim();
    }

    public String getMaterialname() {
        return materialname;
    }

    public void setMaterialname(String materialname) {
        this.materialname = materialname == null ? null : materialname.trim();
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

	public Bom getBom() {
		return bom;
	}

	public void setBom(Bom bom) {
		this.bom = bom;
	}

	public List<Bom> getBomlist() {
		return bomlist;
	}

	public void setBomlist(List<Bom> bomlist) {
		this.bomlist = bomlist;
	}

	public Bom getParentbom() {
		return parentbom;
	}

	public void setParentbom(Bom parentbom) {
		this.parentbom = parentbom;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Map<String, String> getProductmap() {
		return productmap;
	}

	public void setProductmap(Map<String, String> productmap) {
		this.productmap = productmap;
	}
}